package com.example.test.bean;

import java.util.function.BiFunction;

public class EqualsFunction<P extends Tree,S extends Tree>{

    private BiFunction<Tree, Tree, Boolean> equal;


    public EqualsFunction(BiFunction<Tree, Tree, Boolean> equal) {
        this.equal = equal;
    }



    public Object isEqual(Tree tree, Tree tree1){
        Boolean apply = equal.apply(tree, tree1);
        return apply;
    }
}

